-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Move quoted.{Expr|Type}.apply to scala.internal #6046
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move quoted.{Expr|Type}.apply to scala.internal #6046
Conversation
04e9e21
to
b241c0b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
BTW, what is the consideration to favor a separate package instead of a different method name that could avoid accidental usage as well?
library/src-non-bootstrapped/scala/compiletime/quoted/Type.scala
Outdated
Show resolved
Hide resolved
If we only changed the method name but kept it in |
Actually, the |
c921547
to
95090fd
Compare
@liufengyun I moved thing around |
Let's discuss the name. We have |
Then it should be in |
95090fd
to
caf3f11
Compare
@liufengyun now the logic was moved to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This is to avoid having this internal representation leaked to the user with
scala.quoted.Expr.apply
. Users could have accidentally quoted a term usingExpr(myTerm)
which does not get the correct level in the context while typing.